package com.ui.basic.command;

import java.util.List;

import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;
import org.springmodules.validation.bean.conf.loader.annotation.handler.NotNull;

import com.common.basic.base.BaseCommand;
import com.common.basic.util.ComboValue;
import com.ui.basic.ibatis.model.system.TblSLoc;

public class CommandLoc extends BaseCommand implements java.io.Serializable {

	private static final long serialVersionUID = -3027793454202159999L;

	private Long id;
	@NotBlank
	private String locName;

	@NotBlank
	private String locDesc;
	
	@NotNull
	private Long countryId;
	
	private List<ComboValue> countryCB;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setLocName(String locName) {
		this.locName = locName;
	}

	public String getLocName() {
		return locName;
	}

	public void setLocDesc(String locDesc) {
		this.locDesc = locDesc;
	}

	public String getLocDesc() {
		return locDesc;
	}

	public void setCountryId(Long countryId) {
		this.countryId = countryId;
	}

	public Long getCountryId() {
		return countryId;
	}

	public void setProperty(TblSLoc tbMLoc) {
		this.id = tbMLoc.getId();
		this.locName = tbMLoc.getLocName();
		this.locDesc = tbMLoc.getLocDesc();
		this.countryId = tbMLoc.getCountryId();
	}

	public void setCountryCB(List<ComboValue> countryCB) {
		this.countryCB = countryCB;
	}

	public List<ComboValue> getCountryCB() {
		return countryCB;
	}

}